﻿#region

using FluentNHibernate.Mapping;

#endregion

namespace MediaSage.Lib.Database
{
    public class SimilarItemsMap : ClassMap<SimilarItemEntity>
    {
        #region Constructors

        public SimilarItemsMap()
        {
            Table("SimilarItems");
            Id(x => x.ID).GeneratedBy.Assigned();
            Map(x => x.IMDBID).Nullable();
            Map(x => x.TMDBID).Nullable();
            Map(x => x.TVDBID).Nullable();
            HasOne(x => x.Poster);
            Map(x => x.Title);
        }

        #endregion
    }
}